package com.springboot.service;

import com.springboot.model.user;

import java.util.List;
import java.util.Optional;


public interface userService {

    void save(user userdata);

    Optional<user> find(long id);

    List<user> finaByname(String name);

    List<user> userList();

    user saveuser(user userdata);

    Optional<user> findbyid(Long id);

    void deletuser(Long id);

    user updateuser(user userdata);

    List<user> findbyage(Integer age);

    void inserttwo();

    void exception(Long id) throws Exception;
}
